<%--
  Created by IntelliJ IDEA.
  User: taohj
  Date: 2014/5/17
  Time: 13:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>



<div>
    <form>
        <input name="parentId" value="${parent.id}" type="hidden">

        <table style="padding-left: 20px">
            <tr>
                <td>Text:</td>
                <td><input name="text" type="text" class="easyui-textbox" data-options="required:true"/></td>
            </tr>
            <tr>
                <td>Parent</td>
                <td><input name="parentName" class="easyui-textbox" disabled="disabled" value="${parent.text}"></td>
            </tr>

            <tr>
                <td>Type:</td>
                <td>
                    <input name="type" class="easyui-combobox" data-options="valueField: 'value',textField: 'name',url: functions.get('SysDictionaryGetByGroup')+'?groupName=ModelType'
                "/>
                </td>
            </tr>

            <tr>
                <td>IsLeaf:</td>
                <td>
                    <input name="isLeaf" class="easyui-combobox" data-options="valueField: 'value',textField: 'name',url: functions.get('SysDictionaryGetByGroup')+'?groupName=ModelIsLeaf'"/>

                </td>
            </tr>

            <tr>
                <td>Sort:</td>
                <td><input name="sort" type="text" class="easyui-numberbox" data-options="required:false"/></td>
            </tr>
            <tr>
                <td>Url:</td>
                <td><input name="url" type="text" class="easyui-textbox" data-options="required:false"/></td>
            </tr>
            <tr>
                <td>Descripton:</td>
                <td><input name="description" type="text" class="easyui-textbox" data-options="required:false"/></td>
            </tr>

        </table>

    </form>
    <div style="text-align:center;padding:5px">
        <a href="javascript:void(0);" class="easyui-linkbutton" onclick="model.createSubmit(this)">Submit</a>
        <a href="javascript:void(0);" class="easyui-linkbutton" onclick="util.formClear(this);">Clear</a>
    </div>
</div>

<%--<script>
    if(!model.createSubmit){

    }

</script>--%>
